﻿<Controls:Window x:Class="NetFlux4i.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Controls="clr-namespace:Elysium.Controls;assembly=Elysium"
        xmlns:my2="clr-namespace:NetFlux4i"
        xmlns:params="http://schemas.codeplex.com/elysium/params" 
        WindowStartupLocation="CenterScreen" 
        params:Design.Theme="Light" 
        params:Manager.Theme="Light" Height="639.478" Width="927.701"
        Title="NetFlux"  Loaded="Window_Loaded" ResizeMode="CanMinimize" Closing="MetroWindow_Closing">
    <Window.Resources>

        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colours.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.AnimatedSingleRowTabControl.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro.Resources;component/Icons.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
            </ResourceDictionary.MergedDictionaries>

        </ResourceDictionary>

    </Window.Resources>
    <Grid>

        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="512*" />
                <ColumnDefinition Width="192*" />
            </Grid.ColumnDefinitions>
            <TabControl Name="MainTab" SelectionChanged="MainTab_SelectionChanged" Grid.ColumnSpan="2">
                <TabItem Header="Login">
                    <Grid>
                        <Grid>
                            <StackPanel Height="133" HorizontalAlignment="Center"  Name="stackPanel1" VerticalAlignment="Center" Width="294">
                                <TextBox  VerticalContentAlignment="Center" Width="154.002" Name="txtBoxUsername" />
                                <PasswordBox  VerticalContentAlignment="Center" Width="154.001" Name="txtBoxPassword" />
                                <Label Content="" RenderTransformOrigin="0.535,-0.381" />
                                <Label Content="" />
                                <Button Content="Login" Height="23" Name="button1" Width="75" Click="button1_Click" IsDefault="True" />
                            </StackPanel>
                            <Label Content="Account Information" Height="49" HorizontalAlignment="Center"  Name="label1" VerticalAlignment="Top" FontSize="24" Margin="236,38,236,0" />
                        </Grid>
                    </Grid>
                </TabItem>
                <TabItem Header="Settings" IsEnabled="False">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="35*"/>
                            <ColumnDefinition Width="424*"/>
                        </Grid.ColumnDefinitions>

                        <ListBox Height="110" HorizontalAlignment="Left" Margin="398,126,0,0" Name="listBoxNetwork" VerticalAlignment="Top" Width="235" Background="Red" BorderBrush="Red" Foreground="Red" SelectionChanged="listBox1_SelectionChanged" Grid.Column="1">
                            <Image Height="35" HorizontalAlignment="Left" Margin="6,10,0,10" Stretch="Uniform" VerticalAlignment="Top" Width="150" Source="/NetFlux4i;component/Images/engine1.png" OpacityMask="{x:Null}" Tag="0" ImageFailed="Image_ImageFailed" />
                            <Image Height="35" HorizontalAlignment="Left" Margin="6,10,0,10" Stretch="Uniform" VerticalAlignment="Top" Width="150" Source="/NetFlux4i;component/Images/engine.png" OpacityMask="{x:Null}" Tag="3" />
                        </ListBox>
                        <Label Content="Network" FontSize="24" Height="49" HorizontalAlignment="Center" Margin="505,79,243,0" Name="label2" VerticalAlignment="Top" Grid.Column="1" />
                        <Label Content="Server" FontSize="24" Height="49" HorizontalAlignment="Center" Margin="45,83,727,0" Name="label3" VerticalAlignment="Top" Grid.Column="1" />
                        <ListView Foreground="#FF002A00" ItemsSource="{Binding Servers}" Margin="49,127,357,0" Name="listViewServer" SelectionMode="Single" Width="442" Height="116" VerticalAlignment="Top" SelectionChanged="listView1_SelectionChanged" Grid.Column="1">
                            <ListView.View>
                                <GridView>
                                    <GridViewColumn DisplayMemberBinding="{Binding Name}" Header="Server" Width="180" />
                                    <GridViewColumn Header="Location" Width="160">
                                        <GridViewColumn.CellTemplate>
                                            <DataTemplate>
                                                <Label Content="{Binding Location}" />
                                            </DataTemplate>
                                        </GridViewColumn.CellTemplate>
                                    </GridViewColumn>
                                    <GridViewColumn Header="Status" Width="130">
                                        <GridViewColumn.CellTemplate>
                                            <DataTemplate>

                                            </DataTemplate>
                                        </GridViewColumn.CellTemplate>
                                    </GridViewColumn>
                                </GridView>
                            </ListView.View>
                        </ListView>
                        <ProgressBar Height="23" HorizontalAlignment="Left" Margin="296,45,0,0" Name="progressBarStatus" VerticalAlignment="Top" Width="100" Value="0" Grid.Column="1" />
                        <Label Content="Bandwidth left" Height="28" HorizontalAlignment="Left" Margin="281,13,0,0" Name="label4" VerticalAlignment="Top" FontSize="15" Foreground="#FF6C5E5E" Grid.Column="1" />
                        <Button Content="Button" Grid.Column="1" HorizontalAlignment="Left" Margin="660,79,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click_1"/>
                    </Grid>
                </TabItem>
                <TabItem Header="Status" IsEnabled="False">
                    <TabItem.Resources>

                    </TabItem.Resources>
                    <TextBox Name="txtLogOut" AcceptsReturn="True" AcceptsTab="True" IsReadOnly="True" />
                </TabItem>

            </TabControl>
        </Grid>
    </Grid>
</Controls:Window>
